package th.co.exat.model;

import java.util.ArrayList;
import java.util.List;
import org.jdom.Element;
import th.co.exat.model.container.ProvinceContainer;
import th.co.exat.util.SAXWithJdom;

public class Province {

    public static List<ProvinceContainer> getDataList() throws Exception {
        String path = new java.io.File(".").getCanonicalPath();
        List<ProvinceContainer> list = new ArrayList<ProvinceContainer>();
        /*
        List<org.jdom.Element> elements = SAXWithJdom.parserXML("C:\\Province.xml", "Province");

        for (Element el : elements) {
            ProvinceContainer p = new ProvinceContainer();
            p.setProvinceName(el.getChildTextTrim("ProvinceName"));

            list.add(p);
        }
         * 
         */

        return list;
    }
}
